package com.example.basemvp.net;

import okhttp3.Interceptor;

public class DataFactory {
    protected static final Object MONITOR = new Object();
    private static SHCloudApi sCloudApi = null;

    public static SHCloudApi getCloudUserApi(Interceptor interceptor) {
        synchronized (MONITOR) {
            if (sCloudApi == null) {
                sCloudApi = RetrofitHttpBuilder.buildUserApi(SHCloudApi.BASE_URL, interceptor);
            }
            return sCloudApi;
        }
    }
}
